//先引入
import Vue from 'vue'
import VueRouter from 'vue-router'
import Msite from '../pages/Msite/Msite'
import Order from '../pages/Order/Order'
import Search from '../pages/Search/Search'
import Profile from '../pages/Profile/Profile'
import Login from '../pages/Login/Login'
//2.使用
Vue.use(VueRouter)
//3.导出路由模块
export default new VueRouter({
  mode: 'history',
  routes: [
    {path: '/', redirect: '/msite'},
    {path: '/msite', component: Msite, meta: {showFooter: true}},
    {path: '/order', component: Order, meta: {showFooter: true}},
    {path: '/search', component: Search, meta: {showFooter: true}},
    {path: '/profile', component: Profile, meta: {showFooter: true}},
    {path: '/login', component: Login}
  ]
})
